using Unity.Entities;
using UnityEngine;

class EnemyAuthoring : MonoBehaviour
{
    
}

class EnemyAuthoringBaker : Baker<EnemyAuthoring>
{
    public override void Bake(EnemyAuthoring authoring)
    {
        var en=GetEntity(authoring,TransformUsageFlags.Dynamic);
        AddComponent(en,new EnemyComponent());
        AddComponent(en,new CharacterAttributeComponent(){hp=100,demage=10});
        AddComponent(en,new MoveComponent());
    }
}
